WPDiscourse\DiscoursePublish\DiscoursePublish D

Total Complexity 135
Dependencies 3
Dependents 2
Total lines 866
Lines of code 504
Logical lines of code 279
Comment lines 246
Methods 26
Properties 3

Methods 26

Method Rating Maintainability Complexity Lines of code
sync_to_discourse_work()
D
22
37 187
publish_post_after_save()
B
43 22 39
validate_response_body()
A
53 8 22
xmlrpc_publish_post_to_discourse()
A
54 8 19
get_response_attributes()
S
52 7 25
dc_add_post_meta()
S
53 5 23
handle_error()
S
53 5 21
has_excluded_tag()
S
58 5 15
tags_param()
S
60 4 13
dc_get_post_meta()
S
58 3 16
__construct()
S
59 3 13
validate_create_post_body()
S
78 3 3
validate_update_post_body()
S
78 3 3
remote_post()
S
64 3 9
get_allowed_post_types()
S
67 3 8
get_excluded_tag_slugs()
S
67 3 8
create_bad_response_notifications()
S
61 2 14
pin_discourse_topic()
S
54 1 20
topic_blog_id_exists()
S
64 2 10
sync_to_discourse()
S
66 2 8
handle_notice()
S
61 1 11
post_is_deleted()
S
80 1 3
is_valid_sync_post_type()
S
72 1 5
sync_to_discourse_without_lock()
S
79 1 3
sanitize_title()
S
80 1 3
post_is_enqueued()
S
80 1 3